/**
 * 
 */
package com.sysmanage.etl.dao;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;

import com.sysmanage.etl.model.ETL_Excel;
import com.sysmanage.framework.dao.hspring.BaseDAO;

/**
 * @author Yu Jou 2014年7月10日
 */
@Repository("excelDao")
@SuppressWarnings("unchecked")
public class ExcelDao extends BaseDAO<ETL_Excel> {
	@Resource
	private SessionFactory sessionFactory;

	public List<Integer> listShop(String hql) {
		Session session = sessionFactory.getCurrentSession();
		SQLQuery query = session.createSQLQuery(hql);
		return query.list();
	}

}
